<?php

final class Models_Core_Users extends Core_Data_GenericModel {

    function __construct ( $Connection ) {
        parent::__construct( $connection, "Core_Users", array ( "Key", "Email" ) );
    }

    public function getDataType ( $strFieldName ) {

        switch ( $strFieldName ) {

            case "Email":
                return "CHAR";

        }

    }

    public function getSize ( $strFieldName ) {

        switch ( $strFieldName ) {

            case "Email":
                return 255;

        }

    }

    public function isRequired ( $strFieldName ) {

        switch ( $strFieldName ) {

            case "Email":
                return true;

        }

    }

}

?>
